package com.walker.dicegame;

import java.util.Random;

import com.joew.framework.Graphics.ImageFormat;

public class Button {
	private int startx = 200;
	private int starty = 200;
	private int xWidth = 100;
	private int yWidth = 100;
	private String label = "Blank";
	public Button(int x, int y, int width, int height, String blabel){
		startx = x;
		starty = y;
		xWidth = width;
		yWidth = height;
		label = blabel;
	}
	
	public void update(){
	}

	public int getx(){
		return startx;
	}
	
	public int gety(){
		return starty;
	}
	
	public int getwidth(){
		return xWidth;
	}
	
	public int getheight(){
		return yWidth;
	}
	
	public String getLabel(){
		return label;
	}
	
	public boolean contains(int x, int y){
		if (x > startx && x <startx+xWidth){
			if (y > starty && y < starty+yWidth)
				return true;		
		}
		return false;
	}
}
